package com.perfma.xtest.cmd;


/**
 * Created by xuxueli on 17/3/1.
 */
public interface ExecutorBiz {

    /**
     * kill
     *
     * @param jobId 任务ID
     * @return ReturnT 执行结果
     */
    ReturnT<String> kill(long jobId, String because);

    /**
     * log
     *
     * @param logDateTim 开始时间
     * @param logId      任务ID
     * @return ReturnT 执行结果
     */
    ReturnT<LogResult> log(long logDateTim, long logId, Integer readNumbers);

    /**
     * run
     *
     * @param triggerParam 任务参数
     * @return ReturnT 执行结果
     */
    ReturnT<String> run(TriggerParam triggerParam);

}
